package org.shreker.shan.core.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.shreker.shan.base.queryobject.QueryObject;
import org.shreker.shan.core.domain.Log;

public interface LogMapper {

	int insert(Log record);

	Log selectByPrimaryKey(Long id);

	Long queryCount(QueryObject queryObject);
	
	List<Log> query(QueryObject queryObject);
	
	List<Log> queryByUserId(@Param("queryObject")QueryObject queryObject, @Param("userId")Long userId);

	Long queryCountByUserId(@Param("queryObject")QueryObject queryObject, @Param("userId")Long userId);
	
}
